package com.wxsong.authplatform.authweb.service.users;

import com.wxsong.authplatform.authweb.model.role.Role;
import com.wxsong.authplatform.authweb.model.users.Users;

import java.lang.reflect.InvocationTargetException;
import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

public interface UserService {

    Users getByUserName(String userName);

    List<Users> list(int from, int pageSize, Map<String, Object> paramMap);

    Long count(Map<String, Object> paramMap);

    int add(Users users);

    int updateInfo(Long id, String name, int age, Timestamp birth);

    int delete(Long[] ids);

    Users getById(Long id);

    List<Role> hasRoles(Long[] ids);

    List<Role> noRoles(Long[] ids);

    int modifyAuth(String ids, Long userId);
}
